//
//  OMBody.h
//  RequestTest
//
//  Created by xntech on 13-8-19.
//  Copyright (c) 2013年 xntech. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "OMRequestParam.h"
@interface OMBody : NSObject
{
    NSMutableDictionary  *_params;
}
- (void)addParam:(id)object forKey:(id)key;
- (void)addIntParam:(int)value forKey:(id)key;
- (void)addLongParam:(long long)value forKey:(id)key;
- (void)addDoubleParam:(double)value forKey:(id)key;
- (void)addBoolParam:(BOOL)value forKey:(id)key;;
- (void)addDateParam:(NSDate *)date forKey:(id)key;

- (void)setParams:(NSDictionary *)dic;
- (void)addParams:(NSDictionary *)dic;

- (void)setRequestParams:(OMRequestParam *)param forKey:(id)key;

- (int)count;
- (NSArray *)allKeys;

- (id)paramForyKey:(NSString *)key;
@end
